<!--suppress ALL -->
<include file="./Template/header.html" />

<link rel="stylesheet" type="text/css" href="/Template/css/myWallet.css">
<script type="text/javascript">

	$(function() {

		//初始化页面配置
		initPage("我的钱包", "center");

		var app = new Vue({
			el: '#container',
			data: {
				eventList: [],
			},
			methods: {
				index: indexPage,
				order: orderPage,
				rank: rankPage,
				center: centerPage,
				historyBill: function() {
					window.location.href = "/wechat/UserCenter/historyBill";
				},
				applyWithdraw: function () {
					window.location.href = "/wechat/UserCenter/applyWithdraw";
				},
			}
		})

	});


</script>

<div class="my-wallet">
	<div class="my-wallet-header">
		<p class="word color-99">可用团金币</p>
		<p class="money color-66">{$customer.available_assets}</p>
		<div class="btn-withdraw bg-purse" v-on:click="applyWithdraw">
			<p>放进微信钱包</p>
		</div>
		<div class="title-record color-99">
			<p></p>
			<div class="freeze-money">冻结团金币 <span>{$customer.frozen_assets}</span></div>
		</div>
	</div>
	<if condition="$list == null">
		<div class="has-no-data">暂无微信钱包记录</div>
	<else/>
		<div class="withdraw-list">
			<foreach name="list" item="vo">
				<div class="history-bill-details">
					<p class="title color-font">放进微信钱包
						<if condition="$vo['status'] eq $statusEnum['WAITING']">
						<span class="wait">
							{:getEnumString($statusEnum, $vo["status"])}
						</span>
							<else/>
							<span class="end">
							{:getEnumString($statusEnum, $vo["status"])}
						</span>
						</if>
					</p>
					<p class="time color-99">{$vo.create_time}</p>
					<div class="withdraw-money color-font">{$vo.money}元</div>
				</div>
			</foreach>
		</div>
	</if>

</div>

<include file="./Template/footer.html" />